package com.carbonspark.ecoquest.domain.convert;



import com.carbonspark.ecoquest.domain.entity.TaskBO;
import com.carbonspark.ecoquest.infra.basic.entity.Task;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * task bo转换器
 */

@Mapper
public interface TaskBOConverter {

    TaskBOConverter INSTANCE = Mappers.getMapper(TaskBOConverter.class);
    Task convertBOToEntity(TaskBO taskBO);
    TaskBO convertEntityToBO(Task task);
    List<TaskBO> convertEntityListToBOList(List<Task> tasklist);
}
